#ifndef _LCD_h_
#define _LDC_h_
#include <REGX52.H>
#include <intrins.h>

#define uint unsigned int
#define uchar unsigned char

sbit rs = P2 ^ 0;
sbit rw = P2 ^ 1;
sbit en = P2 ^ 2;

void delay(uint n);
void delay5(uchar n);
void check_busy(void);
void write_command(uchar com);
void lcd_initial(void);
void write_data(uchar dat);
void string(uchar position, uchar *s);

#endif
